package day01;

import java.util.Scanner;

import org.junit.Test;

public class test1 {
	@Test
	public void test2() {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入成绩：");
		int score = scanner.nextInt();
		if(score >=90 && score <=100) {
			System.out.println("优秀");
		}else if(score >=80 && score <90) {
			System.out.println("良好");
		}else if(score >=70 && score <80) {
			System.out.println("一般");
		}else if(score >=60 && score <70) {
			System.out.println("及格");
		}else {
			System.out.println("不及格");
		}
	}
	@Test
	public void test3() {
		Scanner scanner = new Scanner(System.in);
		int year = scanner.nextInt();//alt+shift+l
		//if(() ||()){}
		//if (() || ()) {}
		if((year % 4== 0 && year % 100 !=0) || (year % 400 ==0)) {
			System.out.println("是闰年");
		}else {
			System.out.println("不是闰年");
		}
	}

}
